restructure and move to AMD module.js. Thanks Sebastien Bruno (IBM, CCLA).