A vanilla alternative to jQuery Unorphanize