Added JavaScript sample for OAuth authentication.