Fixed deprecated mootools functions