Initial attempt at a browserify version.