Adding alert to jquery for debugging