Simplying test.js