Update date.js

Changed the "destroy-create" logic to a more classy and bug-free "create-or-update" logic in the initDateWidget function.