javascript: improve label and object key lexing