finished creating squares in js