Add while loop to JavaScript AST