added a basic js timer