Complete example of "Javascript Everywhere"