conversion to AMD modules