Updated JSAPI to relative protocal

Updated JSAPI references from http to relative protocal