A collection of small JavaScript functions