move some javascripts to site wide