Push One Array Into Another Javascript Substring From Right