Fixes code convention problems notifications.js #321.