Javascript to Apple Swift transpiler