Fix js ref