fix restart for windows, add js syntax check