Instead of changing jump strength and jumping you could just set the Yvelocity directly.
So to replicate the bounce you have you could do something like
Set Yvelocity to -500
Or since you want it to bounce based on height you can just invert the Yvelocity to do a bounce.
Set Yvelocity to -abs(Yvelocity)