Programming is a complex task, which needs supportive as well as procedural information. Within the eld of Computer Science,there are few examples of procedural information that guide a programmer in how to proceed while solving a problem.We developed such guidelines for programming tasks in JavaScript. We assume foreknowledge of programming in an object oriented language such as Java.In this report, we show how one can develop elegant code in JavaScript, by giving a set of guidelines, and by advising a process of repeated refactoring until a program fulfills all requirements. To show that these guidelines work, we describe the development of a generic module for clientside form validation. The process followed and the resulting module both...