handling date passing from Python to Javascript.