Parsing of statements in JS