Misc jshint.
Raise error on note storage problem.
Don't throw exceptions, even in debug mode.