You had some missing javascript files, and some javascript files in the wrong order on the page. I fixed those and then I added the debug code into the server validation failure section. I think you should be able to get it working from here. Let me know if you have any questions. When you are satisfied it all works, delete line 82.