format.js can't use redirect, has to use javascript. Closes #35