HTML updated JS to form popups