AMD-compatible helpers for JavaScript inheritance