Ways and Advantages of Migrating JavaScript Code to TypeScript