Updated for Mootools 1.4+