JavaScript prototype updates