javascript - closure / class / extends