fixed client js in ajax call