Improve the javascript error handling
Add a thanks page