adds switches around to scripts tags in head