On the hyper-elastic formulation of the immersed boundary method