Functional-javascript practicing, need to practice

Cheated a bit in some of these but not the learnyounode this time yet.