jQuery plugin: put method + some cleaning