modal to mootools