removing unused stuff in browser version