[#41671441] Use JSON instead of responce with Javascript, purify the controller