JavaScript Protected Resource Module - Token Validator