Basic timer implementation

Implements rudimentary timer using JavaScript. Prints
time remaining in seconds.