AMS - change app_path to window.app_path