Date extension for scalable JavaScript application (XDate is the base lib)