Changed JS init stuff for IE