revised test.js