Modularized clientside code