Check for window.app