conversion in jQuery plugin