Update to use the global $, document
Merge pull request #1 from dzucconi/dev

Update to use the global $, document