Various challenges from codeeval.com, all done in JavaScript or CoffeeScript