Modular Javascript framework