Update parser.js

Fixed code style errors