added JS code to index.html head