Fixed main.js (now tagDeleted is array)