AJAX implementation of raise priority and lower priority