update & cleanup deps
Revert "Update error.js"

This reverts commit 235d53bf7495b1010e95b56f21d7edd2cfd8502b.