trying to solve deploy error in js