Creating first controller and passing the app to global scope