Convert a method from &JSRef to JSRef

This also removes the unnecessary formation of a trait object.