update create with js