Clean HTML plugin ignores options

The options for the cleanhtml plugin refer to current object but that isn't in scope. So I switched the function type to bind this on the callbacks so it was still in scope.