Making jQuery script src protocol agnostic in tests