Add PhantomJS workaround.

Modified message and context in catch block will be lost when rethrowing errors on PhantomJS ?
Just check/use window object under browserify.

See: https://github.com/substack/browser-pack/issues/25#issuecomment-31278911
Merge pull request #8 from twada/phantomjs_workaround

PhantomJS workaround