Take that, Internet Explorer

IE is the bane of programmer's existences worldwide, and I now
understand why. ANYWAY this code now works for, at the very least,
Internet Explorer 9+ (I do not have lower versions, so I cannot test),
Chrome, Firefox and Safari.