jQuery requirejs history.js single page framework