Properly resolves relative src for the embed tags

Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=914667#c1