fixed trainer route
moved respondJSON to utils.js