Javascript helper functions to include in several projects