Refactors JS parser, adds CSS parser, tests