Instead of creating the datepicker in initialize(), create it in render() and use the scoped jQuery selector to get the input element.
Also use modern ES6 object spread syntax instead of _.extend, and arrow functions instead of const that = this.
Fixes EMC-58.
Closes EMC-58