Update parser.js

ok this is better