Adding JSON functionality

When an individual lecture is elected on the Course page, the console
logs the “data” object (i.e. the $info array). In order to do this, it
was necessary to edit the php file so that the array was encoded as a
JSON object (see line 34 of getlecture.php).