Converted the last remaining js file to ts