If you select a date past current week, just display currnet week. And date - 7 js bug fix