Examples of my JavaScript code