Updated to work with the latest version of Nodejs and fixed a few issues, such as double completions