photosRoutes coffeescript to javascript