I searched and found many useful threads, but this approach looks most promising to me. Here the link to jsfiddle. I would like to make it a bit faster, because I have sometimes