Java Create Array With Default Value In Js