added (non-dom) node-js version
added timer function