added necessary ajax function to suplusphp