Update datepicker.js

Used wrong variable, should be originalScope rather than scope