hide js function for popup