fix setAttribute bug

fixes bug: 'setAttribute' on 'Element': 2 arguments required, but only 1 present.