Updated so jQuery plugin hook works