fix for .map()

This should fix https://github.com/substack/node-browserify/issues/764