Refactoring Badguy.js to add methods to prototype