Example of modular javascript