Add beginning of convoluted if statement to destinations.js