main.js now uses a model / collection style rendering