Useful things for javascript