One of the currently available approaches to the problem of the accelerated expansion of the Universe is based on cosmological models with various types of scalar fields. In this paper we consider a cosmological model based on the modified Jordan-Brans-Dicke (JBD) theory with a cosmological scalar ϕ(y) playing the role of the variable cosmological constant. Special cases are considered with ϕ(y) = αH 2 and ϕ(y) = αH 4 . In particular, we show the possibility of the expansion with uniform acceleration.