Allow js function snippets to be expanded at word boundaries