Brings Rails named routes to javascript