This is a jQuery plugin. I made this in practice.