add pushstate to app, match routes for rails