fixed ajax call when no php available