Make it working both on CLI on with browserify