Added getElement(id) which takes an id and returns the element.