fix require-ing in browser