change to use same protocol for jquery