moved pop-up window creation outside of json decode loop.  Fixes issue #16