html5 require.js and history.js way of making DRY views