Add declarative type and method declarations
Add asString to JS exceptions
Add structural example to sample index
Return done instead of undefined across JS