Fixed issue with response handling when using browserify in a non-node environment