fixing jquery ref to work over https