bug fixing element.js

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