Added Canice's function to app.js