Corrects typos that would prevent the server to recognise the data sent along with a POST request. Updates the example javascript logging function