implemented Toast params from JS