Javascript can tell which option on the gear dropdown menu was selected, and respond accordingly