fixed accesstoken bug in js