javascript snippet is already there in index.html