Added support for IE and Firefox