Wrap "require" so we can load this in a browser