add javascript to index.html