switch to commonjs for use with browserify