Apache access.log parser in javascript