finished bonuses for functions.js