Typescript Change Position In Javascript