[javascript mode] Don't expect an expression after else

Issue #1441