added js parser and tests