Correcting focus and execcommand syntax