Javascript Array And String Questions