mikiedit: move appending the javascript tags to the end of
toHtml()'s return value to make sandbox work