jagged arrray data structure in Javascript programming language