Started work moving over all of the js into typescript