Add asString to JS exceptions
Add structural example to sample index
Return done instead of undefined across JS