Update widget.js

previousMonthDatesEnd appears like decimal, need to use Math.floor to look OK