Parse String Into Array Javascript Methods For Objects