Fixed setting up request.PUT for non-ajax calls.