added some crazy javascript to remove options