Tiny JavaScript utilities