forward json requests to rails server