fixed timer object to work in node