Remove use of the Array.clear method as it comes from prototype.js