determine frontend js architecture