As far as I know, you can only get the array by hard-coding it.
var monthNames = [ "January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December" ];
Or you can use some javascript library which has this list hard-coded.