JavaScript Jwt-token Resources