move scripts outside of html for faster page loading