Modular javascript framework