Update parser.js

One single more clean commit. Delete all failed tests and milion changes.