cut over to using require.js for testing so that I can stub out String.prototype.trim not being present (like how it is missing in ie8)