- chnage .on('change') to then() and catch()
(I dont not why but it seams that the "on" function is not longer supported in nodejs )