Adding classical inheritance to JS