Added Javascript functionality to the base field and added day, month, year and date fields