[javascript mode] Use 'extends' instead of parenthesized syntax for inheritance