Update parser.js

Delete function from parser. moved in element parser.