Remove Javascript call to undefined function changeOnlyReferent()