Javascript app boilerplate to ensure modularity and scalability