[javascript mode] Don't get confused by empty brackets