Reordered scripts to fire form redirect scripts before matchMedia