Simple proxy for rewriting JavaScript on-the-fly