Rewrite %tag% and %feed% inside JS files