Working through Fuctional Javascript