Define default params and reset them after each promise is resolved
Add some JS doc