Change all setAttributeNs calls to setAttribute
Remove accidentally commited lines