Major cleanup of JS sample code.

Move to a more modern JS style for the Tracer JS example. Includes:

 * Strict mode conformance
 * Use methods instead of prototype de-ref indirections
 * Better use of `Object.create()` in subclasses
 * Better math-intensive methods
 * Better defaults in the web example page