Array Related Coding Question In Javascript Object To String