Correct js token bug