avoid some conflicts

* `<script>` tags should be skipped by default to avoid comments blocking code.
* fix scope issues for derived classes
* add some convenience methods
* by default do not minify on error/ inactive plugin