added window.debug that defers console logs for 5s, added onerror script...

... to angular layout, debug script to both