add snippets and examples from crockford's *javascript the good parts*