Fixed deprecated Mootools functions