js app: fix restart server