Fix JS string completion

Ignores closing quote when finding matching entry
Also fixes multiple function calls per line