init test.js code