Modify jQuery to fit https requirements