js fix for mootools 1.4.5