moved theme-scripts into conditional