Moved scripts to inline to speed up page load