Changed element to newElement for better definition.