AJAX working for Pirate Tasks