Restore IE6 compatibility
Merge pull request #1021 from ryokenau/ie6

Restore IE6 compatibility