moved script tag to the end of the body