add js window sample