Revert "Moved scripts to inline to speed up page load"

This reverts commit d9c50fb501b8ffbb0e974d8cef1614ae4fb71045.