Typo in jsonResponse function