Started an example server and fixed a bug in the index.js