enabled static construction of javascript bindings for archetypes