Modified nodejs example, now it is really working in browser and nodejs too.