Make students controller return JSON and add helper function to return table formatted JSON