Updated README with examples.
Added vanilla JS version