Moving functional javascript in to core concepts.