Add gitignore
Rewrite lib to not need jquery.

* Also add a simple example.