a quick deobfuscation of the element.js file

Much of the original code is optimized for speed, not so much
readability.