David Spriggs (ESRI) has developed a basic OO Javascript template found on GITHUB at
https://github.com/DavidSpriggs/ConfigurableViewerJSAPI.ESRI should make such a template available like they have for FLEX sing FLEX is dead and the future is Javascript and HTML5.
Why not reassign David to work on his viewer full time and relase it?