Typescript Create Object And Class In Javascript