Stream -adventure , bytewiser and functional javascript