[javascript mode] Properly parse quasi quotes without prefix

Closes #2472