Fixed compartability with prototype 1.6 (Magento < 1.6)