fixed: element js code html getting double encoded on edit