Fix bug that causes end date to be NULL
switch from local to remote jquery