How to work with Html panel

I had a similar issue when trying to run some javascript in the HTML panel. See this thread and see if it helps.