code samples for a talk on js modularization/testing