add messy but workable loop. clean it up later
tweak app.js to push array correctly