Update setMask.jsx

Used a object based system, and first working version.