pocket snippets

https://bugzilla.mozilla.org/show_bug.cgi?id=1054410
Similar to the comment above about style namespacing, surrounding these on a closure and using `addEventListener` for events is preferred to avoid clashing with the global namespace.