how to store checkbox value in array in javascript