Made jquery call protocol agnostic