Make JS<T>::clone inline.(fixes #1955)
auto merge of #1966 : lpy/servo/issue1955, r=jdm

see #1955