A collection of Javascript utility functions