Suggest making this a `.js.erb` file and putting in the route dynamically.