Update parser.js

Added missing spaces and meaningfull names.