how to get protocol in jQuery