fix js_parser templates; add jsregex parser tests & karma coverage; use PhantomJS