#7 Bug in code in IE9

Allows code to run in IE9

(First time issuing a PL, so hope I've done this correctly)