Added the populate html code between my variables and my push/splice in my for loop.