mod js architecture