Some handy JS things that I find myself wanting to reuse