javascript execution performance boost
fix for removing autocomplete when editor is clicked