Fixed getElementById to properly check id values. Moved Element menthods to Element.prototype