Javascript: Fix string completions at end of file

Includes failing test case
Javascript: Swallow quote when committing semicolon

Includes test case
Merge pull request #593 from SLaks/use-strict-fix

Add test cases for Javascript string completion