Added element helper to make it easier to create an attribute.
Renamed setAttribute() to just set() to be consistent with get().