Good point... I guess I’d still be a bit uneasy about it.
This is just the nature of JavaScript, it has the power to do pretty much anything in a web page. My goal is to write "good" JavaScript to counteract the "bad" JavaScript of user-hostile web pages.