Implement notices (issue #37)

Also fixed some JSHint errors as in #45.