title: Compile Kotlin to JavaScript
body: <p>I've started looking into Kotlin and I'd like to use it instead of TypeScript for my front end language. Both compile down to JavaScript so I'd like to set it up so that I make a Kotlin file, lets call it <code>myFile.kt</code>, then when I run the compiler it makes a <code>myFile.js</code> file.</p>
  
  <p>Just like how TypeScript takes a <code>myFile.ts</code> and compiles it to a <code>myFile.js</code>.</p>
  
  <p>I'm using the latest version of IntelliJ 15 with release candidate 1 of Kotlin.</p>
  
  <p>I've been searching all over the internet for the way to do this but so far all I've found is setting up IntelliJ so that Kotlin creates a JavaScript library from your code in a JAR file. I also haven't been able to get that to compile any of the <code>kt</code> files in my project (they were previously <code>js</code> files).</p>
  
  <p>Is what I'd like to do currently possible or am I thinking about this in the wrong way?</p>