Expose your Rails routes to your Javascript application.