[Core] Fixes: core.pagination.js clicks on 'first' and 'last' are not working