Date Object Using Javascript With Wordpress