Finally fix the IE bug for JQuery only working on refresh