Needed fixes

Your dependencies are not fulfilled. It's clear you did a npm install -g request on your local machine, masking your bug. Also the rest of these code modifications make sense. Could you push this to npm?