updated main JS file

updates reflects changes to Element.js