Split String Javascript Array Push Pop