Call javascript function from openfl

I think there might be an answer in this thread: