load script window dynamically