Simple on page tutorial in JavaScript