Changed other foreach loops for formatting, now js file is really looking good.