More code converted to MooTools