Ensure LMS passes correct group_id when querying content

TNL-23
It was describing AJAX, so I put it next to the block that handles AJAX...