compatibility with old mootools