build amdjs code