parse.js cleanup