add javascript to date fields