Add checks for window.DEBUG.enabled
Merge pull request #70 from sayrer/master

Add checks for window.DEBUG.enabled