removing extra javascripts from themes