A collection of useful JavaScript methods