IE11 compatibility

see http://msdn.microsoft.com/de-de/library/ie/dn265028%28v=vs.85%29.aspx
Merge pull request #7 from darthnorman/patch-2

IE11 compatibility