Update to use 'let' instead of 'var' to limit scope

There is no need to keep variables outside of their limited scopes,
so switch all of them from 'var' to 'let'
Attempted for for issue #9

Developer tools report:
Uncaught ReferenceError: mozNotification is not defined

Only attempt to use mozNotification if supported