Rails named routes in javascript