Reload the javascript code on error.