added modular javascript