remove parsing from main js and add to new parser js