added a javascript array to new citations, coded javascript button to add to array, However, the error is it is not adding correct element