fixing the ui displaying 'undefined nan' when typing dates in firefox
pulled in latest master branch
Merge pull request #734 from adelegard/nan_firefox_fix

Fixing the ui displaying 'undefined nan' when typing dates in Firefox & IE