Moved 'define' function to 'assign' to prevent conflict with require js.