Common API: compatibility for pre-4.0 JS API added