Added "use strict" to squelch unwanted globals; still not stable.