Add index page javascript