 String.prototype.startsWith ?= (str) ->
     return @lastIndexOf(str, 0) == 0
+
+jQuerySelectorEscapedString = (str) ->
+  return str.replace(/[^a-z0-9_]/gi, '\\$&')
 
 class window.EditorManager
     ###

        valid = true
        buttonField = jQuery '#insertButtons'
        for command of @commands
            button = buttonField.find "##{command}"
            line = @editor.createBlankFunctionHeader command

            if remaining != null

        @moveEditorButtonDelay = 30
        setTimeout @moveEditorButtons, @moveEditorButtonDelay
        @editor.gotoLine @findFirstNonCommentLine(@codeConfig.initial)
        return

    setUpInsertButtons: ->
