Update element.js

Modify function return string,the text of element,not object self