changed the routes.prepend to routes.append because prepend could prevent json requests from being processed properly