Split js code: general, models, colections, views, main