timer.js rewritten
added timerpoller.js, refactored to lib