Set content-type to text/javascript in handling notifyAbort