js compatibility for ie