functional javascript initiall commit