minor canvas view js cleanup