advantage of typescript over javascript