updates js refrences