anchor.diff:  
   
   content_types_provided(ReqData, Context) ->
  -    {[{"text/javascript", to_json}, 
  -      {"application/json", to_json}
  +    {[{"application/json", to_json},
  +      {"text/javascript", to_json}
        ], ReqData, Context}.
   
   
  
positive.code:             %% No; see if we can use OAuth.
              Module = z_context:get("module", Context),
              case mod_oauth:check_request_logon(ReqData, Context) of
                  {none, Context2} ->
                      case z_service:needauth(Module) of
                          false ->
                              %% No auth needed; so we're authorized.
  
negative.code:                             mod_oauth:authenticate(z_service:method(Module) ++ ": " ++ z_service:title(Module) ++ "\n\nThis API call requires authentication.", ReqData, Context2)
                      end;
  
                  {true, AuthorizedContext} ->
                      %% OAuth succeeded; check whether we are allowed to exec this module
                      ConsumerId = proplists:get_value(id, z_context:get("oauth_consumer", AuthorizedContext)),
                      case mod_oauth:is_allowed(ConsumerId, Module, AuthorizedContext) of
                          true ->
                              {true, ReqData, AuthorizedContext};
                          false ->
                              ReqData1 = wrq:set_resp_body("You are not authorized to execute this API call.\n", ReqData),
                              {{halt, 403}, ReqData1, AuthorizedContext}
                      end;
  
                  {false, Response} ->
  