Convert a method from &JSRef to JSRef

This also removes the unnecessary formation of a trait object.
auto merge of #3536 : zwarich/servo/more-jsref, r=Manishearth

This also removes the unnecessary formation of a trait object.