fixing js for ie 8