updated index and js page for popup