@naugtur Yes you are right and thanks for review , its nothing new i made this cause i needed it for my web thing its nothing like any sort of new library or something big its just a chunk of code so i shared it here :) but i yeah i'll try to improve this so that other people can use it too . Cheers and thanks again :)