changed jquerys redirect so it works on the server (possibly)