Java Array Within Array Javascript Mdn Math Javascript