Make JS<T>::clone inline.(fixes #1955)

see #1955