tests and build for js grammars