dates working properly in Javascript. doing the date conversion in Javascript, not in Python (just passing from Python).