Make JavaScript compatible with Zenoss 4.1.1.