Started parser.js rewrite