Improving stub code for jQuery plugin