Add asString to JS exceptions
Add structural example to sample index