Update jsdoc
Remove unused code
Add translate error handling
Update form clearing code when operation is cancelled