Js snippets as learning material