fixes / updates for javascript embedded in display classes