person.js defence code