refactor datepicker and move it to sheets.js.coffee