Replace uses of JS<T>.unrooted() with JS::from_rooted #2580

removed .clone() calls
modified from_rooted method parameter: T to &T