moved script to end of body tag