Getting Alfresco Content Types via JavaScript

I was asked if it is possible to access Alfresco’s DictionaryService via JavaScript…Well, not directly using an offical Alfresco JS Root-Object, but it isn’t a big task if you use some functions of the embedded Rhine engine (& of course Florian’s famous Alfresco JavaScript Console http://alfresco.fme.de/JavaScript-Console.923.0.html):