loadFile now accepts http(s) urls