removed all dead code from the old JS parser and fixed compile errors, now build is OK