renamed before.js to element.js
update