made it work with node from the commandline
almost broke the web version...
Merge pull request #1 from sugendran/master

Made it work with nodejs