fixed interval javascript for finding old metadata