Embed dialog without jQuery