You should know, it looks like that error page actually serves a 200 status code (which means you run the risk of Google crawling and indexing your error pages).
It looks nice, and it works, don't get me wrong. I like jQuery. Just seems unnecessary here.