Fix syntax issues with ajax call & SMS worker