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