Convert the module to AMD