(bluefox) fix some errors and add restart.js