fixed loadElement.js to work with scotts stuff