MDL-45096 AJAX: Arrays and Objects should be defined in the initializer

JavaScript is a prototypal language and complex types should be defined as
null in the prototype, and set up in the initializer instead.