Javascript Flatten Array Into Object Oriented Software Engineering By Jacobson