myCommand will be called in javascript's global space. So it is make sense previous myCommand being overwritten.