change javascripts ref