add js for popups