Big architecture for JS project