Javascript Split String Into Array By Newline