Fixing issues with amd/commonjs loader

+ added defineThumbs function back in