simplify test.js and remove example.js