Renamed JS functions to match native code