Added cross-browser support

and minified