added test.js
added script to index.html