modular javascript