build a compiled js before test, add to dist/