Limit DOM element removal to scripts.

Fixes #87.