Defining dom for use of dom.byId
Changing logic for isDebugMode 
8====D