Bunch of JavaScript code snippets for pure educational purposes