JavaScript functions I wrote that I might want to reuse some day.