fixes for importing libs in browser