javascript WIP: added ComplexType