Random bits that are useful in javascript