adjust select.js and use JsonResponse