common js edit