Fix model generation to fix issue with jasmine text, improve view to select model or collection