playing with javascript in index.html