Issue #4589: Make actions extendable with constructor in JSB