Convert js files to ts