Get Minimum Value In Array Javascript Methods