fix AMD define, package.json