Fix call to sanitize.enable, fix jshint - please keep jshinting.
Add spec for legend sanitization