Removed dependency on dom base famous DOM element being declared on the window.