Various random javascript utilities I've created