Page routing and JS fixings