A lightweight javascript timer