Bug 936646 - [Messages][Drafts] Implement local storage for drafts fix jshint errors

Register globals for jshint to avoid regressing on allowed failures