Some Javascript handy utility funtions for developers