moved script to end of the page