refactored the mockjax routes