Javascript array test script