Correct AMD definition

I tested it on client-side, client-side with AMD and on Node.JS.