datepicker fix for parseDate - this time hopefully it's fully cross-browser
fixing lint issue
changing spaces to tabs in datepicker for consistency