break js app down to models, router & app