Adding type model and collection
Updating main js to instantiate type collection.