datetime javascript tweak