Added check for _homes in model.js, fixes #41