structure of javascript app modular