Fixed bug in server.js: testing for obj property that evaluated 0