Uses Apache Sling to generate a JavaScript representation of JCR node types.