Fixing JS for IE