fixed village.js, which was horribly horribly broken