replace the direction strings in the AJAX request: 'forward' --> 'down' , 'backward' --> 'up'