Get Max Index Of Array Javascript Append Method In Jquery