Make JavaScript compatible with Zenoss 4.1.1.
Merge pull request #38 from zenoss/feature/4.1.1-compat

Make JavaScript compatible with Zenoss 4.1.1.