fixed leaky global in browser code.