Setting up date input to be filled by javscript date