[javascript mode] Fix parsing of argument-less fat arrow functions

Closes #2794