Some improvements and fixes for IE

cc @narqo @veged