Insert Substring Into String Javascript Program