Typescript While Loop Continue Statement In Javascript