Js Remove Part Of String Javascript Substring Vs Substr