worked on javascript timer

it's running a little wild at the moment