Refactored Bonus.js