Cleaned up parse.js