check if rootDirectory is given
fixed server.process check. Server now starts after the first editor with grammar JavaScript is opened