http / https loading for jquery