Sets up a very simple javascript timer