changing js and token return