Bits and bobs, hints and other useful things for javascript