animal.js and animal factory files linked