Jquery Key Value Array Javascript Methods