Examples of JavaScript code