Fixed undefined variable "define" (should be defineProperties).