removing all of command before calling ajax call in execute_server function