While Loop Structure Javascript Substring Negative Synonym