fix for browser require