Tweaking in-browser sample run
Refactored sub-view invocation into closures