convert model and component to JS utilities

I've been working with creating dynamic models and components. The tutorial does a good job of showing how it's done, but the process is repetitive and tedious for creating very little compared to the typical way creating a page.

Can you create utilities for converting models and components into the JS code? It would be very very useful.