This way we can save lot of amount of time.
I would like to know why nobody thinks in this way?
Please do update me if any such tool or procedure already exists?
Even I am happy to contribute for the same, if required.
David Guetrra commented
I have found this article to generate code from UML to JS but is only for PC:
I have a Mac so... :-(