Updated index page javascript.