Global function and utilities for javascript that i used to include in my projects