Sorry for submitting late.

I did as much as I could. Pretty sure my attempt is way off.
Think I need study up on javascript more.