Sample code to demonstrate better JavaScript