Class-like inheritance for Javascript