fix javascript for ie