Fixed bad extend usage in template and component js models