extract panel html from js