Added support for non-webkit browsers