updated to use https or http jquery content