Fix setAttribute() call

element.setAttribute() takes two arguments. Wouldn't work on Chrome/Firefox with only one.