Cleanup
Compatibility fixes for IE