Fix jquery on https

Also upgrade jquery to latest 1.x stable