Class-based inheritance for Javascript [again]