added array in javascript and working on remove button