Update for use with browserify