Handle paths without '/'s in embed widget

The embed widget JavaScript simply creates and iframe element and
sets its src attribute to the specified detail URL + 'widget/'.

To properly form and resolve URLs, we need to make sure that they
end in a '/'.

Addresses #741