change to new js