finished maxbday.js