moved test.js to a script tag in index.html