Fixes for Notify sample to match docs and correct JavaScript

Partial fix for #220

Still some more issues to resolve. Opened BRWSR-16362 issue internally for some of the issues found.