added element.getbytag and element.style
improved error messages