Use Javascript File In Typescript Map Object Detection