Updated cartcontroller.js with an app definition