Changed global variables to us window.app and window.FrogOS