rewrite of main.js separated resources, models