add test.js to repo