Move one page nav plugin to main js file