HUE-2008 [pig] Clicking on the stop button should stop on the frontend

Added $.post fail handler
Moved New script label