Changing module format to AMD