Code snippets for JS101 talk