execCommand to execCmd for chrome