Sample policy for rewriting a URL in Java script