     if grammar.name is 'JavaScript'
       content = editor.getText()
 
+
       if @includeJquery
+        jqueryToUse = @jqueryURL + @jqueryVersion + @jqueryFile
+
         code = 'var __hasjq = function () {' + content + '};' +
           'if (window.jQuery) __hasjq(); else {' +
           'var s = document.createElement("script");' +
-          's.src = "' + @jQueryURL + '";' +
+          's.src = "' + jqueryToUse + '";' +
           's.onload = __hasjq;' +
           'document.body.appendChild(s);}';
       else

    @linkSuffix = '\">Click Me</a>'
    @header = 'javascript:(function(){'
    @footer = '})();'
    @jQueryURL = '//ajax.googleapis.com/ajax/libs/jquery/1/jquery.js'
    atom.workspaceView.command "bookmarklet:create-javaScript", => @createJS()
    atom.workspaceView.command "bookmarklet:create-link", => @createLink()

    atom.config.observe 'bookmarklet.includeJquery', callNow:true, (value) =>
      @includeJquery = value

  deactivate: ->
    @bookmarkletView.destroy()


  configDefaults:
    includeJquery: false
    jqueryVersion: '1'

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