JavaScript: get checkbox value array