Compiler to convert Apple Swift to JavaScript