js architecture