added js subclassing example