canvas addon: Fix jshint warnings

Follows-up 608298208b0feb5a235101