Improved restart template and js code to act like it used to but still function properly with Tornado.