Moved script tags at end of page to follow standard guidelines for loading JS.