Rewrite rules for JavaScript.