fix nodejs server bugs, and make it can run