call it a night
Cleanup + Array initial implementation + more JS function structuring