functional javascript final commit