__dirname and __filename are too useful to not have in the browser