refine parser.js
rename files