switched js files over to ts files