At Coherent Labs we're developing a HTML5-based GUI library that will help you with the pop-up GUI. However, we're a commercial closed source vendor. So it might not be appropriate for your game but you can give it a try.
There are also some open source solutions that might help you out:
I hope this will help you out with your project.