Copy/paste sample cleanup.

- Add missing return value to non-void function.
- Use C++-style comments, not JSDoc-style comments, per uProxy style guide.
- Fix whitespace.