log caught errors in jquery plugin