FWIW, it is possible for a plugin like this to add javascript to pages that are protected by htmlscrubber. Just return a token in your preprocess hook, and then have a format hook that replaces the token with the javascript. --[[Joey]]