js2-mode errors corrected
incorrect call to array
more js2 corrections