newer versions of AngularJS stopped passing the Accept application/json header which Rails needs to know it is xhr