simplify writeJSON
use constant for GITHUB_API_TOKEN environment variable string