moved script back to index page