Fixed bugs preventing propery compilation with Closure JS compiler.  Fixed bugs in example code (use of "$$(...)" to lookup elements by id).