js - inherethence