convert coffe script changes to be typescript