further hardening of the js
Merge pull request #4 from misterbisson/crmstats

further hardening of the js