Fixed bug with single quotes in courseName mucking up the JSON. Used
htmlspecialchars to get around it.