Change protocol for jquery