remove unused scripts from index