Work on http vs. https, especially for IE8