[javascript] Javascript extends class