Add compatibility for IE8 and IE9

Signed-off-by: Fabrice BREBION <fabrice@brebion.info>