Conformed main.js to new Parser interface.