modular javascript complete