Modular and lightweight JavaScript framework