Define UI specific error callbacks within ui.js. Leaves miniLock.js free of dependencies on ui.js.