Added main.js and Update test.html