If type safety is what you miss, why not to use some transpiler like TypeScript?<p><a href="http:&#x2F;&#x2F;www.typescriptlang.org&#x2F;Tutorial" rel="nofollow">http:&#x2F;&#x2F;www.typescriptlang.org&#x2F;Tutorial</a>