Refs #5492: make a copy of simplemodal and adjust js/css
Fixes #5492: Popup are now adjusted to their content or the window