first commit
transfered the javascript to index.js