Split RouteInputView out into its own JS file