Some JavaScript data utilities