Implementation-agnostic JavaScript interface for making HTTP calls