Moved edition of package to package_edit.js.
The update method is private.