A javascript lib for measuring elapsed tme