Add a static from_rooted method to JS<T> #2309