update example, refactor readme & move snappy.js