fix jquery loading for secure and non-secure servers