only define as amd module if define.amd is set