     @linkSuffix = '\">Click Me</a>'
     @header = 'javascript:(function(){'
     @footer = '})();'
-    @jQueryURL = '//ajax.googleapis.com/ajax/libs/jquery/1/jquery.js'
+    @jqueryFile = '/jquery.min.js'
+    @jqueryURL = '//ajax.googleapis.com/ajax/libs/jquery/'
     atom.workspaceView.command "bookmarklet:create-javaScript", => @createJS()
     atom.workspaceView.command "bookmarklet:create-link", => @createLink()
 
     atom.config.observe 'bookmarklet.includeJquery', callNow:true, (value) =>
       @includeJquery = value
+    atom.config.observe 'bookmarklet.jqueryVersion', callNow:true, (value) =>
+      @jqueryVersion = value
 
   deactivate: ->
     @bookmarkletView.destroy()

    if grammar.name is 'JavaScript'
      content = editor.getText()

      if @includeJquery
        code = 'var __hasjq = function () {' + content + '};' +
          'if (window.jQuery) __hasjq(); else {' +
          'var s = document.createElement("script");' +
          's.src = "' + @jQueryURL + '";' +
          's.onload = __hasjq;' +
          'document.body.appendChild(s);}';
      else


  configDefaults:
    includeJquery: false
    jqueryVersion: '1'

  activate: (state) ->
    @bookmarkletView = new BookmarkletView(state.bookmarkletViewState)
