avalon in js