make proper jquery plugin