Custom element implementing swoosh.js