collection off usefull javascript functions