Remove globals
Add extra documentation to examples
Add unit tests
Update jQuery