Update request.php

removed ok() function, added json() function. Used to respond via ajax