start of migration to using require.js.  The newer stuff in src has been migrated, but not older stuff, including tmlib, which some of the newer stuff depends on.  Tests have been migrated except for tmlib.