[javascript mode] Fix indentation after empty array literal

Closes #2001