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.
Remove broken unreachable code.
Support for Dynamic View.