Making inheritable objects in JavaScript without objects