Adding Elements To String Javascript Substring