Fixed typo in console logging
Removed app from global scope