Split One Array Into Two Javascript