allows $ anywhere in completion, adds modified word_separators for JavaScript mode