Moved script tags to just before closing body tag