Date/time object wrapper for JavaScript applications