added RAF support IE9