JS App Architecture Example