Added caching to generated JS routes
Fixed backtothegrid not working without hashnav