Simple Javascript timer library