Small useful JavaScript utility scripts