Use the current page URL's protocol to access the Flickr API, to avoid request failures when the app is launched using https://
From https://github.com/ibm-js/deliteful-tutorial/pull/2
Thanks  @modcoms  (Martin McCormack)