Update example.js

Adding redirect example.