Further refactoring. Changes the event handler for the slider to be on value change rather than slide, and wipes the map before each AJAX call