move script tags to bottom, add call to onePage.js