Simple JavaScript worklogger