fixed ref to js