Added support for rewriting JavaScript embedded inside HTML; needs more work.