update of php and js - json working