Moved var app to beginning to hopefully fix notification.alert not functioning