timer appears to be working, unit tests to be written in qunit