cleaning up javascripts for homepage sliders