attached amd object with define

attached amd object with define, since this plugin was unable to load jquery as module.