modified ends_at change ajax script and implemented using year month and date