Add browserify support - Fixes #4777