reconstruct js according to rest api change