ecmascript: Drop debug prints
ecmascript: Move timer functions to global object

This mimics how other JS environments work