added ability to call Sparkling functions from native code