Erin week3 javascript (plus bonus WIP)

Higher-order functions complete. Bonus is a work in progress.