the world's most useful javascript function