Mission DRY: Accomplished
When working with multiple levels of conditionals, it helps to DRY things up a bit: not repeating yourself can give performance gains as well as make your code more readable and elegant. Here is one of the monstrosities I had before: (function changeBackground(){ if (currentIcon === 'clear-day') { $('body').css('background-image', 'url(