A simple log system created in JavaScript