Fix require for browser builds