Add a simple JavaScript serializer for TimedItems