Dynamic checkbox array; checking a checkbox automatically adds to checkbox array