Bringing Rails Routes to JavaScript