I have a JavaScript web application which, when being initialized, takes a chartType parameter. The chartType value (for example "populationPyramid" or "scatterGram") should determine the layout state of the app. In "populationPyramid mode", the app should for example have a small sidebar view and an extra heading view. (All in all there might be 4 different layouts of the app with their own css settings.) I have a JavaScript web application which, when