added support for IE and removed unused methods