Js generate url string for src attribute of iframe.