Javascript Array And String Questions In C