add event onresumed
remove unnecessary console.log
remove unnecessary functions in util.js
better console shim
oninput shim